package com.lanhao.aot.carrierintegration.commondto;

import java.math.BigDecimal;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * 请求标签信息请求体
 * 
 * @author kunzhou3@iflytek.com
 * @date 2020-12-18
 */
public class LabelApplyRequestDTO {
	private String fromName;
	private String fromFirm;
	private String fromCountryCode;
	private String fromAddress1;
	private String fromAddress2;
	private String fromCity;
	private String fromState;
	private String fromZip5;
	private String fromZip4;
	private String fromPhone;

	private String toName;
	private String toFirm;
	private String toCountryCode;
	private String toAddress1;
	private String toAddress2;
	private String toCity;
	private String toState;
	private String toZip5;
	private String toZip4;
	private String toPhone;

	private BigDecimal weight;
	private BigDecimal length;
	private BigDecimal width;
	private BigDecimal height;
	
	private String customerReferenceNo;
	
	private JSONObject extraParam;
	private String remark;
	
	public String getFromName() {
		return fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	public String getFromFirm() {
		return fromFirm;
	}

	public void setFromFirm(String fromFirm) {
		this.fromFirm = fromFirm;
	}

	public String getFromCountryCode() {
		return fromCountryCode;
	}

	public void setFromCountryCode(String fromCountryCode) {
		this.fromCountryCode = fromCountryCode;
	}

	public String getFromAddress1() {
		return fromAddress1;
	}

	public void setFromAddress1(String fromAddress1) {
		this.fromAddress1 = fromAddress1;
	}

	public String getFromAddress2() {
		return fromAddress2;
	}

	public void setFromAddress2(String fromAddress2) {
		this.fromAddress2 = fromAddress2;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getFromState() {
		return fromState;
	}

	public void setFromState(String fromState) {
		this.fromState = fromState;
	}

	public String getFromZip5() {
		return fromZip5;
	}

	public void setFromZip5(String fromZip5) {
		this.fromZip5 = fromZip5;
	}

	public String getFromZip4() {
		return fromZip4;
	}

	public void setFromZip4(String fromZip4) {
		this.fromZip4 = fromZip4;
	}

	public String getFromPhone() {
		return fromPhone;
	}

	public void setFromPhone(String fromPhone) {
		this.fromPhone = fromPhone;
	}

	public String getToName() {
		return toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}

	public String getToFirm() {
		return toFirm;
	}

	public void setToFirm(String toFirm) {
		this.toFirm = toFirm;
	}

	public String getToCountryCode() {
		return toCountryCode;
	}

	public void setToCountryCode(String toCountryCode) {
		this.toCountryCode = toCountryCode;
	}

	public String getToAddress1() {
		return toAddress1;
	}

	public void setToAddress1(String toAddress1) {
		this.toAddress1 = toAddress1;
	}

	public String getToAddress2() {
		return toAddress2;
	}

	public void setToAddress2(String toAddress2) {
		this.toAddress2 = toAddress2;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public String getToState() {
		return toState;
	}

	public void setToState(String toState) {
		this.toState = toState;
	}

	public String getToZip5() {
		return toZip5;
	}

	public void setToZip5(String toZip5) {
		this.toZip5 = toZip5;
	}

	public String getToZip4() {
		return toZip4;
	}

	public void setToZip4(String toZip4) {
		this.toZip4 = toZip4;
	}

	public String getToPhone() {
		return toPhone;
	}

	public void setToPhone(String toPhone) {
		this.toPhone = toPhone;
	}

	public BigDecimal getWeight() {
		return weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	public BigDecimal getLength() {
		return length;
	}

	public void setLength(BigDecimal length) {
		this.length = length;
	}

	public BigDecimal getWidth() {
		return width;
	}

	public void setWidth(BigDecimal width) {
		this.width = width;
	}

	public BigDecimal getHeight() {
		return height;
	}

	public void setHeight(BigDecimal height) {
		this.height = height;
	}
	
	public String getCustomerReferenceNo() {
		return customerReferenceNo;
	}

	public void setCustomerReferenceNo(String customerReferenceNo) {
		this.customerReferenceNo = customerReferenceNo;
	}

	public JSONObject getExtraParam() {
		return extraParam;
	}

	public void setExtraParam(JSONObject extraParam) {
		this.extraParam = extraParam;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	public static void main(String[] args) {
		LabelApplyRequestDTO shipmentsRequestDTO = new LabelApplyRequestDTO();
		shipmentsRequestDTO.setFromName("Chuanbo Li");
		shipmentsRequestDTO.setFromFirm("Li");
		shipmentsRequestDTO.setFromAddress2("1424 Newbridge Ave");
		shipmentsRequestDTO.setFromZip5("94401");
		shipmentsRequestDTO.setFromCity("San Mateo");
		shipmentsRequestDTO.setFromState("CA");

		shipmentsRequestDTO.setToName("Clare Teng");
		shipmentsRequestDTO.setToFirm("Teng");
		shipmentsRequestDTO.setToCity("Philadelphia");
		shipmentsRequestDTO.setToState("PA");
		shipmentsRequestDTO.setToAddress2("2101 Chestnut st. Apt 1720");
		shipmentsRequestDTO.setToZip5("19103");

		shipmentsRequestDTO.setWeight(new BigDecimal("10").multiply(BizConstants.KG2OZ));
		shipmentsRequestDTO.setLength(new BigDecimal("20").multiply(BizConstants.CM2INCH));
		shipmentsRequestDTO.setWidth(new BigDecimal("20").multiply(BizConstants.CM2INCH));
		shipmentsRequestDTO.setHeight(new BigDecimal("30").multiply(BizConstants.CM2INCH));
		
	}
}
